<template>
  <div>
    <p>当前计数: {{ count }}</p>
    <button @click="increment">增加</button>
    <button @click="decrement">减少</button>
    <p v-if="isOdd">当前计数是奇数</p>
  </div>
</template>

<script setup>
import { useCounter } from '../hooks/useCount.js'

const { count, increment, decrement, isOdd } = useCounter()
</script>
